package git.soulbgm.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;

/**
 * 字典类型对象
 *
 * @author SoulBGM
 * @date 2022/03/25 16:37
 */
public class DictType {

    /**
     * ID
     */
    private Long id;

    /**
     * 字典名称
     */
    @Excel(name = "字典名称")
    @TableField(condition = SqlCondition.LIKE)
    private String dictName;

    /**
     * 字典类型
     */
    @Excel(name = "字典类型")
    @TableField(condition = SqlCondition.LIKE)
    private String dictType;

    /**
     * 状态（0停用 1正常）
     */
    @Excel(name = "状态", replace = {"停用_0", "正常_1"})
    private Integer status;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
